@@ -3,6 +3,8 @@ package com.pojo;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class User {
    @Value("2")
    @@ -12,6 +14,18 @@ public class User {
        @Value("123")
        private String password;

        private  Order order;
        private List<Order> orders;
        private List<String> address;

        public Order getOrder() {
            return order;
        }

        public void setOrder(Order order) {
            this.order = order;
        }

        @Override
        public String toString() {
            return "User [id=" + id + ", name=" + name + ", password=" + password + "]";
            @@ -30,4 +44,21 @@ public class User {
                public String getPassword() {
                    return password;
                }


                public List<Order> getOrders() {
                    return orders;
                }

                public void setOrders(List<Order> orders) {
                    this.orders = orders;
                }

                public List<String> getAddress() {
                    return address;
                }

                public void setAddress(List<String> address) {
                    this.address = address;
                }
            }